<!doctype html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>LPL微网站-<%= title %></title>
  <meta name="viewport" content="initial-scale=1, maximum-scale=1">
  <link rel="shortcut icon" href="/favicon.ico">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <link rel="stylesheet" href="/stylesheets/style.css">
  <link rel="stylesheet" href="/stylesheets/vendor/sm.min.css">
</head>
<body> 
<header class="set-hide">
<h1><%= title %></h1>
</header>

<nav class="set-hide">
  <span><a title="主页" href="/">home</a></span>
  <span><a title="存档" href="/archive">archive</a></span>
  <span><a title="标签" href="/tags">tags</a></span>
  <span><a title="友情链接" href="/links">links</a></span>
  <% if (user) { %>
    <span><a title="上传" href="/upload">upload</a></span>
    <span><a title="发表" href="/post">post</a></span>
    <span><a title="登出" href="/logout">logout</a></span>
  <% } else { %>
    <span><a title="登录" href="/login">login</a></span>
    <span><a title="注册" href="/reg">register</a></span>
  <% } %>
  <span><form action="/search" method="GET"><input type="text" name="keyword" placeholder="SEARCH" class="search" /></form></span>
</nav>

<article>
  <% if (success) { %>
    <div><%= success %></div>
  <% } %>
  <% if (error) { %>
    <div><%= error %> </div>
  <% } %>